/* Custom styles to override Bootstrap defaults */

/* Reduce the size of radio buttons */
.form-check-input[type=radio] {
    width: 0.8em;
    height: 0.8em;
    margin-top: 0.35em; /* Slightly adjust vertical alignment */
}

/* Adjust the spacing between the radio button and its label */
.form-check {
    padding-left: 1.3em; /* Reduce the padding slightly */
    margin-bottom: 0.5rem; /* Add some space between each radio option */
}

.form-check .form-check-input {
    margin-left: -1.3em; /* Align with the reduced padding */
}

/* Add proper spacing between form groups with radio buttons */
.form-group:has(.form-check) {
    margin-bottom: 1.25rem;
}

/* Ensure consistent spacing in radio groups */
.form-group .form-check:last-child {
    margin-bottom: 0.25rem;
}

/* These styles apply to inline form check items as well */
.form-check-inline .form-check-input {
    margin-top: 0.2em;
}

.form-check-label {
    padding-left: 0.2rem; /* Add a bit more spacing between radio and label */
    line-height: 1.5; /* Improve text line height for better readability */
}

/* Form Section Styling */
.form-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
}

.section-title h3.title {
    color: #1c5429;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title h3.title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffb640;
}

.subsection {
    background-color: #f9fdf9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #1c5429;
}

.subsection h4 {
    color: #1c5429;
    font-weight: 500;
}

/* Form Elements Styling */
.form-control, .form-select {
    border: 1px solid #e2e8e2;
    border-radius: 8px;
    padding: 12px 15px;
    height: auto;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #1c5429;
    box-shadow: 0 0 0 0.25rem rgba(28, 84, 41, 0.15);
}

.form-label {
    margin-bottom: 8px;
    color: #333;
}

.form-label.fw-bold {
    color: #1c5429;
}

/* Original form-check-input styles that we're overriding partially */
.form-check-input:checked {
    background-color: #1c5429;
    border-color: #1c5429;
}

/* Farm Section Styling */
.farm-section {
    background-color: #f9fdf9 !important;
    border-radius: 12px !important;
    border-left: 4px solid #ffb640 !important;
    margin-bottom: 30px !important;
}

.farm-section h4 {
    color: #1c5429;
    font-weight: 500;
    border-bottom: 1px solid #e2e8e2;
    padding-bottom: 10px;
}

/* Add Farm Button */
#addFarmBtn {
    background-color: #fff;
    color: #1c5429;
    border: 2px solid #1c5429;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#addFarmBtn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #1c5429;
    transition: all 0.4s;
    z-index: -1;
}

#addFarmBtn:hover {
    color: white;
}

#addFarmBtn:hover:before {
    left: 0;
}

#addFarmBtn i {
    margin-right: 8px;
    transition: transform 0.3s;
}

#addFarmBtn:hover i {
    transform: rotate(90deg);
}

/* Agreement Box */
.agreement-box {
    background-color: #f9fdf9 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8e2;
    border-left: 4px solid #ffb640 !important;
}

.agreement-box h4 {
    color: #1c5429;
}

/* Required Field Indicator */
.text-danger {
    color: #ff4d4d !important;
}

/* Field Help Text */
.form-text small {
    color: #666;
    font-style: italic;
}

/* Registration Intro */
.registration-intro {
    background-color: #f9fdf9;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #1c5429;
    margin-bottom: 30px;
}

/* Input Groups */
.input-group-append .ms-3 {
    background-color: #f9faf9;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8e2;
}

/* Section numbering */
.numbered-section {
    position: relative;
}

.section-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: #1c5429;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* File upload styling */
input[type="file"] {
    padding: 10px;
    border: 1px dashed #1c5429;
    background-color: #f9fffa;
}

input[type="file"]:hover {
    background-color: #f0fff5;
}

/* Date input styling */
input[type="date"] {
    position: relative;
    padding-right: 40px;
}

/* Progress indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-progress:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e2e8e2;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #1c5429;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.step-title {
    font-size: 14px;
    text-align: center;
    color: #1c5429;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-section {
        padding: 20px 15px;
    }
    
    .subsection, .farm-section {
        padding: 15px;
    }
    
    .form-progress {
        display: none;
    }
} 