/* ==========================================
   ORCAMENTO.CSS - MovAcessivel
   Estilos para pagina de orcamento
   ========================================== */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === GRADIENT BACKGROUND === */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* === HEADER === */
header {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header .floating-animation {
    animation: float 3s ease-in-out infinite;
}

/* === MAIN CONTENT === */
main {
    flex: 1;
}

/* === FLOATING CARD === */
.floating-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease-out;
}

/* === ICON WRAPPER === */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* === FORM FLOATING MODERN === */
.form-floating-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-modern label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
    z-index: 1;
}

.form-floating-modern input:focus + label,
.form-floating-modern input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: #667eea;
}

/* === INPUT MODERN === */
.input-modern {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    position: relative;
}

.input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-modern::placeholder {
    color: #9ca3af;
}

/* === ALERT MODERN === */
.alert-modern {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-modern h4 {
    color: #92400e;
    margin: 0;
}

.alert-modern p {
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

.alert-modern .flex {
    display: flex;
}

.alert-modern .items-start {
    align-items: flex-start;
}

.alert-modern .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.alert-modern .mr-3 {
    margin-right: 0.75rem;
}

.alert-modern .mb-2 {
    margin-bottom: 0.5rem;
}

.alert-modern .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.alert-modern .opacity-90 {
    opacity: 0.9;
}

/* === BUTTONS === */
.btn-modern {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-modern:active:not(:disabled) {
    transform: translateY(0);
}

.btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success-modern:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Estilo do SVG dentro do botao */
.btn-modern svg {
    margin-right: 0.5rem;
}

/* === RESULT BOX === */
.result-box {
    animation: slideIn 0.5s ease-out;
}

#resultado {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.1rem;
    color: #166534;
    font-weight: 500;
    line-height: 1.8;
}

#resultado strong {
    color: #065f46;
}

/* === MAP === */
#map {
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* === FOOTER === */
footer {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === UTILITY CLASSES === */
.d-none {
    display: none !important;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

/* === GRID E FLEX === */
.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

/* === MEDIA QUERIES PARA GRID === */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .floating-card {
        padding: 1.5rem !important;
    }
    
    .btn-modern {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    #map {
        height: 300px !important;
    }
}

@media (max-width: 640px) {
    .alert-modern {
        padding: 1rem;
    }
    
    .alert-modern .text-2xl {
        font-size: 1.25rem;
    }
    
    .alert-modern h4 {
        font-size: 1rem;
    }
    
    .alert-modern p {
        font-size: 0.875rem;
    }
}

/* === SECTION HEADERS === */
.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-section-header .icon-box {
    width: 2rem;
    height: 2rem;
    background: #d1fae5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

/* === TEXT UTILITIES === */
.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

/* === WIDTH UTILITIES === */
.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* === BACKGROUND UTILITIES === */
.bg-green-100 {
    background-color: #d1fae5;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

/* === BORDER UTILITIES === */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-green-200 {
    border-color: #bbf7d0;
}

/* === SPACING UTILITIES === */
.mr-3 {
    margin-right: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* === BACKDROP BLUR === */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* === OVERFLOW === */
.overflow-hidden {
    overflow: hidden;
}

/* === SHADOW === */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === HOVER EFFECTS === */
a:hover {
    text-decoration: none;
}

button:hover {
    text-decoration: none;
}

/* === INLINE FLEX === */
.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* === GOOGLE MAPS AUTOCOMPLETE === */
.pac-container {
    z-index: 10000 !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f3f4f6;
}

/* === TRANSITION === */
.btn-modern,
.input-modern,
a {
    transition: all 0.3s ease;
}