/* =========================================
   FlyDealFare Payment Form – Styles
   ========================================= */

#fdf-payment-wrapper {
    max-width: 680px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}

/* ── Form Container ── */
#fdf-payment-form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ── Header ── */
.fdf-form-header {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 14px 20px;
}

.fdf-form-header h3 {
    margin: 0 0 2px;
    font-size: 16px;
    color: #222;
}

.fdf-form-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* ── Rows ── */
.fdf-form-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.fdf-form-row:last-child {
    border-bottom: none;
}

.fdf-label {
    width: 180px;
    min-width: 180px;
    padding-top: 8px;
    font-weight: 600;
    color: #444;
    font-size: 13px;
}

.fdf-field {
    flex: 1;
}

/* ── Inputs ── */
.fdf-input,
.fdf-select,
.fdf-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.fdf-input:focus,
.fdf-select:focus,
.fdf-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.fdf-input.fdf-input-error,
.fdf-select.fdf-input-error,
.fdf-textarea.fdf-input-error {
    border-color: #e00;
    background: #fff8f8;
}

.fdf-input-sm {
    width: 90px !important;
}
/* Checkbox */
.fdf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    flex-wrap: nowrap;
    width: 100%;
}

.fdf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #007bff;
    cursor: pointer;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.fdf-checkbox-label span {
    display: inline;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    flex: 1;
}

.fdf-checkbox-label a {
    color: #007bff;
    text-decoration: underline;
}
.fdf-select {
    height: 34px;
}

.fdf-select-sm {
    width: 100px !important;
}

.fdf-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Inline fields ── */
.fdf-field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fdf-field-inline .fdf-error {
    width: 100%;
    margin-top: 2px;
}

/* ── Card Type ── */
.fdf-card-types {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fdf-card-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.fdf-card-option input[type="radio"] {
    cursor: pointer;
    accent-color: #007bff;
}

.fdf-card-img-wrap img {
    height: 30px;
    display: block;
    border-radius: 3px;
    transition: opacity 0.2s, transform 0.2s;
}

.fdf-card-option:hover .fdf-card-img-wrap img {
    opacity: 0.85;
    transform: translateY(-1px);
}

.fdf-card-option input[type="radio"]:checked + .fdf-card-img-wrap {
    outline: 2px solid #007bff;
    border-radius: 4px;
}

/* ── CVV image ── */
.fdf-cvv-img {
    height: 34px;
}

/* ── Note text ── */
.fdf-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e00;
}

/* ── Error messages ── */
.fdf-error {
    display: none;
    margin-top: 4px;
    padding: 5px 8px;
    background: #fff0f0;
    border: 1px solid #fbb;
    border-radius: 3px;
    font-size: 12px;
    color: #c00;
    line-height: 1.6;
}

.fdf-error.fdf-error-visible {
    display: block;
}

/* ── Submit row ── */
.fdf-submit-row {
    justify-content: center;
    padding: 16px 20px;
    background: #f9f9f9;
}

.fdf-submit-btn {
    display: inline-block;
    padding: 10px 40px;
    background: #007bff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.fdf-submit-btn:hover {
    background: #0069d9;
}

.fdf-submit-btn:active {
    transform: scale(0.98);
}

.fdf-submit-btn:disabled {
    background: #aac8f0;
    cursor: not-allowed;
}

/* ── SSL badge ── */
.fdf-ssl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.fdf-ssl-img {
    height: 55px;
    flex-shrink: 0;
}

.fdf-ssl-text {
    margin: 0;
    font-size: 12px;
    color: #2a8a2a;
    font-weight: 500;
}

/* ── Success Message ── */
#fdf-success-message {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: fdfFadeIn 0.5s ease;
}

.fdf-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
    animation: fdfBounceIn 0.6s ease;
}

#fdf-success-message h2 {
    font-size: 24px;
    color: #222;
    margin: 0 0 10px;
}

#fdf-success-message p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

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

@keyframes fdfBounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .fdf-form-row {
        flex-direction: column;
    }
    .fdf-label {
        width: 100%;
        min-width: 0;
        padding-top: 0;
    }
}
