/* Basic styles for Django forms to integrate with Bootstrap */

/* Card structure inspired by apply.css */
.application-card {
    background: white;
    color: #2d3436; /* Default text color for content inside white card */
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.application-header {
    background: linear-gradient(135deg, #c17b00 0%, #e7a84d 100%);
    color: white;
    padding: 2rem 2.5rem;
    text-align: center;
}

.application-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.application-form {
    padding: 2.5rem;
}

/* Styles for the beta-signup-form specifically, adopting apply.css look */
.beta-signup-form .form-label {
    font-weight: 600;
    color: #2d3436; /* Darker labels for white background */
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
}

.beta-signup-form .form-label i {
    color: #c17b00; /* Gold color for icons */
    margin-right: 0.65rem; /* Space after icon */
    font-size: 1em; /* Match label font size */
}

.beta-signup-form .form-control,
.beta-signup-form .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    color: #2d3436; /* Text color for inputs on light background */
}

.beta-signup-form .form-control::placeholder {
    color: #6c757d;
}

.beta-signup-form .form-control:focus,
.beta-signup-form .form-select:focus {
    border-color: #c17b00;
    box-shadow: 0 0 0 3px rgba(193, 123, 0, 0.15);
    background-color: white;
    outline: none;
    color: #2d3436;
}

.beta-signup-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c17b00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center; /* Adjusted from 1rem */
    background-size: 16px 12px;
}

.beta-signup-form .form-text {
    color: #636e72;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.beta-signup-form .btn-gold {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    background-color: #FFD700; /* Gold */
    border-color: #FFD700;
    color: #FFFFFF; /* Changed to white */
    font-weight: bold;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.beta-signup-form .btn-gold:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #FFFFFF; /* Kept as white for hover, or could be a slightly off-white/grey if needed */
}

.beta-signup-form .invalid-feedback.d-block {
    font-size: 0.85rem;
    color: #dc3545; /* Bootstrap's default text-danger */
    margin-top: 0.25rem;
    font-weight: normal; /* Matching typical error text weight */
    text-align: left; /* Ensure errors are left-aligned */
}

/* Alert styling for messages (adapted for light card theme) */
.alert {
    border-radius: 0.75rem; /* from apply.css related styles */
    padding: 1rem 1.5rem;  /* from apply.css related styles */
    margin-top: 1.5rem; /* Spacing within the card */
    margin-bottom: 1.5rem;
    border-width: 1px;
    border-style: solid;
}

/* Success alert styling */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom success alert with checkmark icon */
.mobile-friendly-alert.alert-success {
    position: relative;
    background-color: #ebf7ee;
    border-left: 4px solid #28a745;
}

.mobile-friendly-alert.alert-success .fas {
    color: #28a745;
}

@media (max-width: 768px) {
    .alert-success {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .alert .btn-close {
        padding: 0.75rem;
        font-size: 1.25rem;
        margin: -0.5rem -0.5rem -0.5rem auto;
    }
}

/* Make sure alerts are visible */
.alert {
    position: relative;
    z-index: 100;
}

/* reCAPTCHA styling */
.captcha-container {
    display: flex;
    justify-content: flex-start;
    margin: 0.5rem 0;
}

.captcha-container > div {
    transform-origin: left top;
}

/* On mobile, we might need to scale the captcha down a bit */
@media (max-width: 400px) {
    .captcha-container > div {
        transform: scale(0.85);
        margin-right: auto; /* Remove -15% margin and make it auto */
    }
}

/* Mobile-friendly alert styling */
.mobile-friendly-alert {
    position: relative;
    padding: 1rem 1rem 1rem 1.25rem;
    padding-right: 3rem; /* Add more space on the right for the close button */
}

.mobile-friendly-alert .btn-close {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    right: 1rem;
    opacity: 0.7;
    z-index: 5; /* Ensure it's above other content */
}

@media (max-width: 576px) {
    .mobile-friendly-alert {
        position: relative;
        padding: 1rem 3rem 1rem 1rem; /* Ensure enough padding on right side */
        margin-bottom: 1.25rem;
    }
    
    .mobile-friendly-alert .btn-close {
        right: 0.75rem;
        padding: 0.5rem;
    }
    
    .mobile-friendly-alert .fas {
        font-size: 1.25rem !important;
        margin-right: 0.75rem !important;
    }
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    border-left: 4px solid #dc3545 !important; /* Ensure left border remains */
} 