/* Declaration Page Specific Styles */
.fee-summary {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
}

.fee-summary h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.fee-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-icon {
    font-size: 20px;
}

.member-type {
    font-weight: 500;
    display: block;
}

.capital-info {
    font-size: 14px;
    color: #666;
}

.fee-amount {
    font-weight: 500;
}

.fee-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    font-weight: bold;
}

.total-amount {
    color: #2b6cb0;
    font-size: 18px;
}

.declaration-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
}

.declaration-row {
    display: flex;
    margin-bottom: 20px;
    gap: 24px;
    align-items: flex-start;
}

.declaration-checkbox-col {
    min-width: 24px;
    width: 24px;
    flex-shrink: 0;
    position: relative;
}

.declaration-checkbox-col.invisible {
    visibility: hidden;
}

.declaration-text-col {
    flex: 1;
}

.declaration-text-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-spacing: 0.15em;
}

.declaration-checkbox-col input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.declaration-checkbox-col input[type="checkbox"] + label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.declaration-checkbox-col input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

.declaration-checkbox-col input[type="checkbox"]:checked + label::before {
    background-color: #4a6fd8;
    border-color: #4a6fd8;
}

.declaration-checkbox-col input[type="checkbox"]:checked + label::after {
    content: "\2713";
    position: absolute;
    top: 2px;
    left: 5px;
    color: white;
    font-size: 14px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Custom checkbox styling */
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-option label {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    cursor: pointer;
}

.checkbox-option label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

.checkbox-option input[type="checkbox"]:checked + label::before {
    background-color: #4a6fd8;
    border-color: #4a6fd8;
}

.checkbox-option input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 5px;
    color: white;
    font-size: 14px;
}

.policy-link {
    color: #2b6cb0;
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

/* Style dropdown */
.dropdown-container {
    position: relative;
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-back, .btn-next, .btn-submit {
    padding: 8px 25px;
    border: 1px solid;
    border-radius: 4px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.btn-back {
    background-color: #fff;
    color: #333;
    border-color: #ced4da;
}

.btn-back:hover {
    background-color: #f8f9fa;
}

.btn-next, .btn-submit {
    background-color: #4755c3;
    color: white;
    border-color: #4755c3;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #3a45ad;
}

.btn-next:disabled, .btn-submit:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    border-color: #ced4da;
    cursor: not-allowed;
}

.btn-preview {
    padding: 8px 25px;
    border: 1px solid #28a745;
    border-radius: 4px;
    background-color: #28a745;
    color: white;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    transition: all 0.2s ease;
}

.btn-preview:hover {
    background-color: #218838;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a6fd8;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Smaller loading spinner for buttons */
.btn-submit .loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-bottom: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dropdown-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.btn-submit {
    background-color: #3f51b5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.btn-submit:hover {
    background-color: #303f9f;
}

.btn-submit:disabled {
    background-color: #aaaaaa;
    cursor: not-allowed;
}
