/* Real Estate Website Styles - Florida Theme */
:root {
    --primary-color: #0077be;
    --secondary-color: #003d5b;
    --accent-color: #ff6b35;
    --tropical-teal: #00a693;
    --sunset-orange: #ff8c42;
    --palm-green: #2d5016;
    --sand-beige: #f4e4bc;
    --ocean-blue: #006994;
    --coral-pink: #ff7f7f;
    --light-blue: #e6f3ff;
    --text-dark: #2c3e50;
    --text-light: #5d6d7e;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --error-color: #e74c3c;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sand-beige) 50%, var(--white) 100%);
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 166, 147, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 40% 40%, rgba(0, 105, 148, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    padding: 20px 15px;
}

/* Content Card */
.content-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 
        0 12px 40px rgba(0, 166, 147, 0.15),
        0 6px 20px rgba(0, 119, 190, 0.1),
        0 2px 8px rgba(0, 166, 147, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: none;
    max-width: 100%;
    backdrop-filter: blur(10px);
}

/* Logo */
.logo {
    height: 80px;
    width: auto;
    max-width: 200px;
}

/* Headline */
.headline {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Description */
.description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Form Section */
.form-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--sand-beige) 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid rgba(0, 166, 147, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 166, 147, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Elements */
.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid rgba(0, 166, 147, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--tropical-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 147, 0.25);
    background: rgba(255, 255, 255, 1);
}

/* Custom Select Dropdown Styling with Dropdown Arrow */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 15px center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 10px !important;
    padding-right: 45px !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Dropdown Wrapper with Custom Arrow */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    padding-right: 45px !important;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 10;
}

.dropdown-wrapper:hover .dropdown-arrow,
.dropdown-select:focus + .dropdown-arrow {
    color: var(--tropical-teal);
}

/* Force arrow to be visible on all screen sizes */
.dropdown-arrow {
    display: block !important;
}

/* Desktop: Larger, more visible arrow */
@media (min-width: 768px) {
    .dropdown-arrow {
        color: #0066cc !important;
        font-size: 18px !important;
        right: 12px !important;
    }
}

/* Mobile: Use both icon and CSS background for maximum compatibility */
@media (max-width: 767px) {
    .dropdown-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 15px center !important;
        background-repeat: no-repeat !important;
        background-size: 14px 10px !important;
    }
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--tropical-teal) 0%, var(--ocean-blue) 100%);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(0, 166, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 166, 147, 0.4),
        0 4px 15px rgba(0, 105, 148, 0.2);
    background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--tropical-teal) 100%);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Agent Information */
.agent-info {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid var(--light-blue);
}

.agent-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--tropical-teal);
    object-fit: cover;
    object-position: center 30%;
    box-shadow: 0 4px 15px rgba(0, 166, 147, 0.3);
}

.agent-name {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.agent-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(0, 166, 147, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 166, 147, 0.2);
    position: relative;
}

.trust-indicators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--tropical-teal), var(--sunset-orange));
    border-radius: 15px;
}

.trust-indicators i {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.trust-indicators p {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* Footer */
.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.update-info {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Blog Link Styles */
.blog-link-section {
    display: block !important;
    visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-card {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .headline {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .agent-photo {
        width: 100px;
        height: 100px;
    }
    
    .agent-name {
        font-size: 1.2rem;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 10px 5px;
    }
    
    .content-card {
        padding: 20px 15px;
    }
    
    .headline {
        font-size: 1.6rem;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .logo {
        height: 60px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }
    
    .main-container {
        background: white !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        background: white !important;
    }
    
    .content-card::before {
        display: none !important;
    }
    
    .analysis-card {
        box-shadow: none !important;
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .analysis-card::before {
        display: none !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* CAPTCHA Styles */
.captcha-section {
    margin: 1.5rem 0;
}

.captcha-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #17a2b8;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.captcha-container:hover {
    border-color: #138496;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

#captcha_answer {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #17a2b8;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#captcha_answer:focus {
    border-color: #138496;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.captcha-section h5 {
    color: #17a2b8;
    font-weight: 600;
}

.captcha-section .btn {
    transition: all 0.3s ease;
}

.captcha-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* CAPTCHA Highlight Animation */
.captcha-highlight {
    animation: captchaGlow 1s ease-in-out 3;
    border-color: #dc3545 !important;
}

@keyframes captchaGlow {
    0% { 
        box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
        transform: scale(1);
    }
}
