/* ==========================================================================
   DPDP Consent & Withdrawal Management Styles
   Matches Lifenity website and provided UI design specifications
   ========================================================================== */

/* Modal Container & Base */
.dpdp-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 24px;
    background: #ffffff;
}

.dpdp-modal .modal-header {
    border-bottom: none;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.dpdp-modal .btn-close {
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dpdp-modal .btn-close:hover {
    opacity: 1;
}

/* Modal Top Icon */
.dpdp-top-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 12px;
}

.dpdp-top-shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #eafaf1;
    color: #00875a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.dpdp-top-lock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e8f4fd;
    color: #00a0a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Modal Title */
.dpdp-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 18px;
    font-family: inherit;
}

/* Stepper Indicator */
.dpdp-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

.dpdp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.dpdp-step.active {
    color: #00875a;
    font-weight: 600;
}

.dpdp-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.dpdp-step.active .dpdp-step-num {
    background-color: #00875a;
    color: #ffffff;
}

.dpdp-step-divider {
    width: 40px;
    height: 2px;
    background-color: #e5e7eb;
}

/* Form Controls */
.dpdp-form-group {
    margin-bottom: 16px;
}

.dpdp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dpdp-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.dpdp-label .required-star {
    color: #e53e3e;
}

.dpdp-char-count {
    font-size: 13px;
    color: #718096;
}

.dpdp-input, .dpdp-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d2d6dc;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.dpdp-input:focus, .dpdp-textarea:focus {
    outline: none;
    border-color: #00875a;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

/* Blue "Consent Details Found" Card */
.dpdp-blue-panel {
    background-color: #eef6fc;
    border: 1px solid #cce5ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.dpdp-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dpdp-blue-icon {
    color: #0275d8;
    font-size: 18px;
}

.dpdp-blue-title {
    font-size: 15px;
    font-weight: 700;
    color: #0056b3;
    margin: 0;
}

.dpdp-panel-desc {
    font-size: 13px;
    color: #495057;
    margin: 0 0 12px 26px;
}

.dpdp-details-grid {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    padding: 12px 14px;
    gap: 8px;
}

.dpdp-detail-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dpdp-detail-col:not(:last-child) {
    border-right: 1px solid #edf2f7;
    padding-right: 10px;
}

.dpdp-detail-col:not(:first-child) {
    padding-left: 10px;
}

.dpdp-detail-label {
    font-size: 11px;
    color: #718096;
    margin-bottom: 4px;
    font-weight: 500;
}

.dpdp-detail-val {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.dpdp-status-badge {
    background-color: #d4edda;
    color: #155724;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

.dpdp-status-badge.withdrawn {
    background-color: #f8d7da;
    color: #721c24;
}

/* Yellow "Please Note" Panel */
.dpdp-yellow-panel {
    background-color: #fef9e7;
    border: 1px solid #fae8a4;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dpdp-yellow-icon {
    color: #e67e22;
    font-size: 18px;
}

.dpdp-yellow-title {
    font-size: 14px;
    font-weight: 700;
    color: #7d5a00;
    margin: 0;
}

.dpdp-yellow-panel ul {
    margin: 8px 0 0 20px;
    padding: 0;
    font-size: 12.5px;
    color: #4a5568;
    line-height: 1.5;
}

.dpdp-yellow-panel ul li {
    margin-bottom: 4px;
}

/* Confirmation Checkbox */
.dpdp-confirm-group {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dpdp-confirm-group .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.dpdp-confirm-group label {
    font-size: 13.5px;
    color: #2d3748;
    cursor: pointer;
    line-height: 1.4;
}

/* Action Buttons */
.dpdp-action-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.dpdp-btn-cancel {
    border: 1px solid #cbd5e0;
    background-color: #ffffff;
    color: #4a5568;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dpdp-btn-cancel:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.dpdp-btn-submit {
    background-color: #00875a;
    border: 1px solid #00875a;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.dpdp-btn-submit:hover:not(:disabled) {
    background-color: #00704a;
    border-color: #00704a;
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
}

.dpdp-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Digits Input Group */
.dpdp-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.dpdp-otp-digit {
    width: 44px;
    height: 52px;
    border: 1.5px solid #d2d6dc;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dpdp-otp-digit:focus {
    outline: none;
    border-color: #00875a;
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

.dpdp-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
    padding: 0 4px;
}

.dpdp-resend-link {
    color: #00875a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.dpdp-resend-link.disabled {
    color: #a0aec0;
    cursor: not-allowed;
    text-decoration: none;
}

/* Consent Checkbox on Contact Us & Booking Forms */
.dpdp-consent-wrapper {
    margin-top: 14px;
    margin-bottom: 14px;
}

.dpdp-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dpdp-consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00a0a8;
}

.dpdp-consent-checkbox label {
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.4;
    cursor: pointer;
}

.dpdp-consent-checkbox label a {
    color: #00a0a8;
    font-weight: 600;
    text-decoration: underline;
}

.dpdp-consent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #eafaf1;
    color: #00875a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .dpdp-modal .modal-content {
        padding: 18px 14px;
    }

    .dpdp-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dpdp-detail-col:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .dpdp-detail-col:not(:first-child) {
        padding-left: 0;
    }

    .dpdp-action-buttons {
        flex-direction: column-reverse;
        width: 100%;
    }

    .dpdp-btn-cancel, .dpdp-btn-submit {
        width: 100%;
        text-align: center;
    }

    .dpdp-otp-digit {
        width: 38px;
        height: 46px;
        font-size: 20px;
    }
}
