/* ==========================================================================
   Iwan SkipCash Payment Form - Modern Arabic RTL Styling
   Perfect match for Eduvalt Theme & Iwan International Identity
   Palette:
     - Primary Navy: #212244
     - Accent Orange: #ff5421 / #f37335
     - Dark Slate: #1e293b
     - Border Gray: #e2e8f0
   ========================================================================== */

.iwan-skipcash-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 30px auto;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.iwan-skipcash-wrapper * {
    box-sizing: border-box;
}

.iwan-skipcash-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px -5px rgba(33, 34, 68, 0.08), 0 0 1px 1px rgba(33, 34, 68, 0.04);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

/* Brand Logos Header */
.iwan-logos-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
}

.iwan-logos-header .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwan-brand-logo {
    height: 52px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logos-divider {
    width: 1.5px;
    height: 38px;
    background: #e2e8f0;
    display: block;
}

.skipcash-brand-logo {
    height: 36px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .iwan-logos-header {
        gap: 15px;
        padding-bottom: 18px;
    }
    .iwan-brand-logo {
        height: 42px;
    }
    .skipcash-brand-logo {
        height: 28px;
    }
}

/* Header */
.iwan-skipcash-header {
    text-align: center;
    margin-bottom: 25px;
}

.iwan-skipcash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    color: #c2410c;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #fed7aa;
}

.iwan-skipcash-badge svg {
    color: #ea580c;
}

.iwan-skipcash-title {
    font-size: 24px;
    font-weight: 800;
    color: #212244;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.iwan-skipcash-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Alert messages */
.iwan-skipcash-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.5;
}

.iwan-skipcash-alert.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.iwan-skipcash-alert.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Form inputs & grid */
.iwan-form-row {
    margin-bottom: 20px;
}

.iwan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .iwan-form-grid {
        grid-template-columns: 1fr;
    }
}

.iwan-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.iwan-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #212244;
    margin-bottom: 8px;
}

.iwan-form-group .required {
    color: #ff5421;
}

.iwan-form-group input,
.iwan-form-group textarea,
.iwan-form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.iwan-form-group input:focus,
.iwan-form-group textarea:focus,
.iwan-form-group select:focus {
    background-color: #ffffff;
    border-color: #212244;
    box-shadow: 0 0 0 3px rgba(33, 34, 68, 0.12);
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* Amount Header & Currency Selector */
.iwan-amount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.iwan-amount-header label {
    margin-bottom: 0;
}

.iwan-currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-select-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
}

.iwan-currency-select {
    width: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #212244 !important;
    background-color: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    cursor: pointer;
}

.iwan-currency-select:hover {
    border-color: #ff5421 !important;
}

/* Amount Input & Currency Badge */
.iwan-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.iwan-amount-input-wrapper input {
    padding-left: 100px;
    font-weight: 700;
    font-size: 17px;
    color: #212244;
}

.currency-label {
    position: absolute;
    left: 12px;
    font-weight: 700;
    color: #212244;
    font-size: 13px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 8px;
    pointer-events: none;
    direction: ltr;
}

/* Live Conversion Notice */
.iwan-conversion-box {
    background: #fff8f5;
    border: 1px dashed #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    text-align: right;
}

.conversion-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c2410c;
    font-size: 14px;
    font-weight: 600;
}

.conversion-content strong {
    font-size: 16px;
    color: #ff5421;
}

.conversion-note {
    display: block;
    font-size: 12px;
    color: #78716c;
    margin-top: 4px;
    line-height: 1.4;
}

/* Submit Button - Eduvalt Theme Styling */
.iwan-submit-section {
    margin-top: 30px;
    margin-bottom: 25px;
}

.iwan-skipcash-btn {
    width: 100%;
    background: linear-gradient(135deg, #212244 0%, #303366 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 24px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 20px -4px rgba(33, 34, 68, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-family: inherit !important;
}

.iwan-skipcash-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5421 0%, #f37335 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(255, 84, 33, 0.45) !important;
}

.iwan-skipcash-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Spinner */
.spinner-svg {
    animation: rotate 2s linear infinite;
    width: 22px;
    height: 22px;
}

.spinner-svg .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Payment Methods & Trust */
.iwan-payment-methods {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    text-align: center;
}

.methods-title {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.methods-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.pay-logo {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #212244;
}

.pay-logo.skipcash-brand {
    background: #fff7ed;
    color: #ff5421;
    border-color: #fed7aa;
    font-weight: 800;
}

.security-note {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Result / Receipt Card */
.iwan-result-card {
    text-align: center;
    padding: 40px 30px;
}

.result-icon {
    margin-bottom: 15px;
}

.result-title {
    font-size: 24px;
    font-weight: 800;
    color: #212244;
    margin: 0 0 10px 0;
}

.result-title.text-danger {
    color: #dc2626;
}

.result-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 30px 0;
}

.receipt-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: right;
}

.receipt-header {
    font-size: 16px;
    font-weight: 800;
    color: #212244;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.receipt-row .label {
    color: #64748b;
}

.receipt-row .value {
    color: #212244;
}

.receipt-row .amount-highlight {
    color: #ff5421;
    font-size: 18px;
    font-weight: 800;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-print, .btn-retry, .btn-home {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-print {
    background: #212244;
    color: #ffffff;
    border: none;
}

.btn-print:hover {
    background: #ff5421;
}

.btn-retry {
    background: #dc2626;
    color: #ffffff;
    border: none;
}

.btn-retry:hover {
    background: #b91c1c;
}

.btn-home {
    background: #f1f5f9;
    color: #212244;
    border: 1px solid #e2e8f0;
}

.btn-home:hover {
    background: #e2e8f0;
}

@media print {
    body * {
        visibility: hidden;
    }
    .iwan-skipcash-wrapper, .iwan-skipcash-wrapper * {
        visibility: visible;
    }
    .iwan-skipcash-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
    }
    .result-actions {
        display: none !important;
    }
}
