/* Builder Registration Form Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    color: white;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Registration Section */
.registration-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.card-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.card-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.card-body {
    padding: 40px;
}

/* Form Stepper */
.form-stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #228B70;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #228B70;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn-prev, .btn-next {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-prev {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
}

.btn-prev:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-next {
    background: #228B70;
    color: white;
    border-color: #228B70;
}

.btn-next:hover {
    background: #1e7a5e;
    border-color: #1e7a5e;
    color: white;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: #228B70;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1.2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 35px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.form-label i {
    color: #228B70;
    font-size: 0.9rem;
    width: 16px;
}

/* Form Controls - Prevent Double Borders */
.form-control {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
}

.form-control:focus {
    border: 1px solid #228B70 !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25);
    background: white;
    outline: none;
}

.form-control:focus-visible {
    outline: none;
}

/* Remove any conflicting focus styles */
.form-control:focus:not(:focus-visible) {
    outline: none;
}

/* Override any Bootstrap or other conflicting styles */
.registration-card .form-control {
    border: 1px solid #ced4da !important;
}

.registration-card .form-control:focus {
    border: 1px solid #228B70 !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25) !important;
}

/* Force override all conflicting styles */
.registration-section .form-control,
.registration-section .form-control:focus,
.registration-section .form-control:active {
    border: 2px solid #ced4da !important;
    box-shadow: none !important;
}

.registration-section .form-control:focus {
    border: 0px solid #228B70 !important;
    box-shadow: 0 0 0 0rem rgba(34, 139, 112, 0.25) !important;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* File Upload */
.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    padding: 8px 12px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 12px;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
}

.form-check-input:checked {
    background-color: #228B70;
    border-color: #228B70;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 8px;
}

/* Additional spacing for textarea and form text */
.form-text {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #6c757d;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Terms Checkbox */
.terms-checkbox {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #228B70;
}

.terms-checkbox label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
    cursor: pointer;
}

.terms-checkbox a {
    color: #228B70;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-brand {
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-brand:hover {
    background: linear-gradient(135deg, #1e7a5e 0%, #228B70 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 112, 0.3);
    color: white;
}

.btn-brand:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.5);
    color: white;
}

.btn-brand:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    margin-right: 8px;
}

.btn-brand:disabled .loading-spinner {
    display: inline-block;
}

.btn-brand:disabled .btn-text {
    opacity: 0.7;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    margin-right: 8px;
}

/* Invalid Feedback */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Form Text */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 30px 20px;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn-brand {
        width: 100%;
        padding: 15px 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .registration-section {
        padding: 40px 0;
    }
    
    .card-header {
        padding: 25px 15px;
    }
    
    .card-body {
        padding: 25px 15px;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

/* Animation for form elements */
.form-control,
.btn-brand,
.alert {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn-brand:focus,
.form-check-input:focus {
    outline: 2px solid #228B70;
    outline-offset: 2px;
}

/* Loading state */
.btn-brand.loading {
    pointer-events: none;
}

.btn-brand.loading .btn-text {
    opacity: 0.7;
}

.btn-brand.loading .loading-spinner {
    display: inline-block;
}
