/* Farmer Registration Section - 3 Column Layout */
.farmer-registration-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: calc(100vh - 70px);
    transition: background 0.3s ease;
}

body.dark-mode .farmer-registration-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .form-container {
    background: #1e1e1e;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

/* Form Header */
.form-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    transition: background 0.3s ease;
}

body.dark-mode .form-header {
    background: linear-gradient(135deg, #0a5c3b 0%, #1a4b2e 100%);
}

.header-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: background 0.3s ease;
}

body.dark-mode .header-icon {
    background: #0a5c3b;
}

.header-icon i {
    font-size: 1.75rem;
    color: white;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body.dark-mode .form-title {
    color: #ffffff;
}

.form-description {
    font-size: 0.85rem;
    color: var(--gray-600);
    transition: color 0.3s ease;
}

body.dark-mode .form-description {
    color: #e0e0e0;
}

/* Form Sections */
.registration-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.dark-mode .section-heading {
    color: #ffffff;
}

.section-heading i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Three Column Layout */
.form-row.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

body.dark-mode .field-label {
    color: #ffffff;
}

.field-label i {
    color: var(--primary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

body.dark-mode .field-label i {
    color: #6fbf8a;
}

.required {
    color: #dc3545;
}

body.dark-mode .required {
    color: #ff6b6b;
}

.field-input,
.field-select,
.field-textarea {
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-800);
}

body.dark-mode .field-input,
body.dark-mode .field-select,
body.dark-mode .field-textarea {
    background: #2a2a2a;
    border-color: #4a4a4a;
    color: #ffffff;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,94,58,0.1);
}

body.dark-mode .field-input:focus,
body.dark-mode .field-select:focus,
body.dark-mode .field-textarea:focus {
    box-shadow: 0 0 0 3px rgba(111,191,138,0.3);
}

.field-input::placeholder,
.field-select::placeholder,
.field-textarea::placeholder {
    color: var(--gray-400);
}

body.dark-mode .field-input::placeholder,
body.dark-mode .field-select::placeholder,
body.dark-mode .field-textarea::placeholder {
    color: #8a8a8a;
}

.field-hint {
    font-size: 0.65rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

body.dark-mode .field-hint {
    color: #c0c0c0;
}

.field-error {
    font-size: 0.65rem;
    color: #dc3545;
}

body.dark-mode .field-error {
    color: #ff6b6b;
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.btn-cancel,
.btn-submit {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-cancel {
    background: var(--white);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
    transition: all 0.2s ease;
}

body.dark-mode .btn-cancel {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #4a4a4a;
}

.btn-cancel:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateX(-2px);
}

body.dark-mode .btn-cancel:hover {
    background: #3a3a3a;
    color: #6fbf8a;
    border-color: #6fbf8a;
}

.btn-submit {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(15,94,58,0.2);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Alerts */
.alert {
    margin: 1rem 2rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

body.dark-mode .alert-success {
    background: #1a3a2a;
    color: #ffffff;
    border-left-color: #4caf50;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

body.dark-mode .alert-danger {
    background: #3a2a2a;
    color: #ffffff;
    border-left-color: #f44336;
}

.alert i {
    font-size: 1rem;
    margin-top: 0.1rem;
}

.alert-content {
    flex: 1;
    font-size: 0.85rem;
}

body.dark-mode .alert-content {
    color: #ffffff;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.error-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.error-list li {
    margin: 0.2rem 0;
    font-size: 0.8rem;
}

body.dark-mode .error-list li {
    color: #ffffff;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Info Box */
.info-box {
    margin: 0 2rem 2rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: background 0.3s ease;
}

body.dark-mode .info-box {
    background: #2a2a2a;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

body.dark-mode .info-icon {
    background: #3a3a3a;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

body.dark-mode .info-icon i {
    color: #6fbf8a;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

body.dark-mode .info-title {
    color: #ffffff;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.info-list li {
    font-size: 0.7rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

body.dark-mode .info-list li {
    color: #e0e0e0;
}

.info-list i {
    color: var(--primary);
    font-size: 0.6rem;
}

body.dark-mode .info-list i {
    color: #6fbf8a;
}

.info-api {
    display: inline-block;
    background: var(--gray-200);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-family: monospace;
    color: var(--primary);
    transition: all 0.3s ease;
}

body.dark-mode .info-api {
    background: #3a3a3a;
    color: #6fbf8a;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-row.three-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .form-container {
        border-radius: 16px;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-row.three-columns,
    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .alert {
        margin: 1rem;
    }
    
    .info-box {
        margin: 0 1rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.3rem;
    }
    
    .section-heading {
        font-size: 1rem;
    }
}