/* ================================================================
   Resume Review Plugin — form.css
   Brand: #0a2d5e (dark navy) | #c9a84c (gold)
   ================================================================ */

/* ── Form Wrapper ───────────────────────────────────────────── */
.rr-web-form {
    max-width: 640px;
    margin: 0 auto;
}

/* ── Form Title & Subtitle ──────────────────────────────────── */
.rr-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a2d5e;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.rr-form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ── Form Groups ────────────────────────────────────────────── */
.rr-form-group {
    margin-bottom: 18px;
}
.rr-form-row.rr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .rr-form-row.rr-two-col { grid-template-columns: 1fr; gap: 0; }
}

.rr-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}
.rr-req { color: #dc2626; }

/* ── Controls ───────────────────────────────────────────────── */
.rr-control {
    width: 100%;
    padding: 15px;
    border: 1.5px solid var(--e-global-color-primary);
    border-radius: 10px;
    font-size: 14px;
    color: var(--e-global-color-primary);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
	appearance: none;
}
select.rr-control {
    background: url(/wp-content/uploads/2026/03/angle-down.png) no-repeat right 10px center;
    background-size: 15px;
    padding-right: 30px;
}
.rr-control:focus {
    border-color: #0a2d5e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,45,94,.1);
}
.rr-control.rr-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* ── Phone Row ──────────────────────────────────────────────── */
.rr-phone-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .rr-phone-row { grid-template-columns: 1fr; }
}
.rr-country-select { min-width: 0; }
.rr-phone-input    { min-width: 0; }

/* ── Validation errors ──────────────────────────────────────── */
.rr-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    min-height: 16px;
    margin-top: 4px;
}
.rr-error:empty {
	display: none;
}
/* ── Form-level notices ─────────────────────────────────────── */
#rr-form-messages .rr-notice,
#rr-payment-messages .rr-notice {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.rr-notice-error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.rr-notice-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }

/* ── File Upload ────────────────────────────────────────────── */
.rr-upload-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 4px;
    border: 2px dotted var(--e-global-color-primary);
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    padding: 20px;
	margin-bottom: 20px;
}
.rr-file-input   { display: none; }
.rr-file-btn {
    display: inline-block;
    background: var(--e-global-color-secondary);
    border: 1.5px solid var(--e-global-color-secondary);
    border-radius: 10px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.rr-file-btn:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #ffffff;
}
.rr-file-name    { font-size: 13px; color: #64748b; }
.rr-upload-wrap img {
    max-width: 80px;
}
.rr-upload-wrap p {
    margin: 0;
}
.rr-upload-wrap p br {
	display: block;
}
/* ── Price Summary ──────────────────────────────────────────── */
.rr-price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0 18px;
    font-size: 15px;
    color: #374151;
}
.rr-price-amount {
    color: #0a2d5e;
    font-size: 16px;
    font-weight: 700;
}

/* ── Submit Button ──────────────────────────────────────────── */
.rr-submit-btn {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #0a2d5e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
    box-sizing: border-box;
}
.rr-submit-btn:hover    { background: #0d3a7a; }
.rr-submit-btn:disabled { opacity: .72; cursor: not-allowed; }

/* ── Secure Note ────────────────────────────────────────────── */
.rr-secure-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

/* ── Payment Page ───────────────────────────────────────────── */
.rr-payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .rr-payment-wrapper { grid-template-columns: 1fr; }
}

/* Order Summary Card */
.rr-order-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.rr-order-header {
    background: #0a2d5e;
    padding: 20px 24px;
    text-align: center;
}
.rr-order-header h2 {
    color: #fff;
    margin: 10px 0 0;
    font-size: 17px;
}
.rr-order-logo {
    height: 40px;
    display: block;
    margin: 0 auto;
}
.rr-order-details { padding: 20px 24px; }
.rr-order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    padding: 7px 0;
    color: #475569;
    gap: 10px;
}
.rr-order-row span  { color: #64748b; }
.rr-order-row strong { color: #1e293b; text-align: right; }
.rr-order-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}
.rr-order-total { font-size: 15px; font-weight: 700; }
.rr-price        { color: #0a2d5e; font-size: 18px; }

/* Payment Card */
.rr-pay-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.rr-pay-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    color: #0a2d5e;
}
.rr-pay-body   { padding: 20px 24px; }
.rr-pay-label  { display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 6px; }

.rr-card-element-box {
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s;
}
.rr-card-element-box.StripeElement--focus { border-color: #0a2d5e; box-shadow: 0 0 0 3px rgba(10,45,94,.1); }
.rr-card-error-msg {
    font-size: 12px;
    color: #dc2626;
    min-height: 16px;
    margin-top: 4px;
    font-weight: 500;
}

.rr-postal-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    box-sizing: border-box;
    margin-top: 4px;
    transition: border-color .2s;
}
.rr-postal-input:focus {
    border-color: #0a2d5e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,45,94,.1);
}
.rr-pay-submit-btn { margin-top: 18px; }

/* ================================================================
   Thank-You Popup Overlay
   ================================================================ */

/* ── Backdrop ───────────────────────────────────────────────── */
.rr-ty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ── Modal box ──────────────────────────────────────────────── */
.rr-ty-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 4px 20px rgba(0,0,0,.14);
    max-width: 750px;
    width: 100%;
    padding: 40px 36px 32px;
    text-align: center;
    position: relative;
    animation: rr-ty-slide-up 0.38s cubic-bezier(.22,.68,0,1.2) both;
    box-sizing: border-box;
	display: flex;
    flex-direction: column;
    gap: 30px;
}
.rr-ty-modal ul.rr-ty-bullets {
    text-align: left;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
rr-ty-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@keyframes rr-ty-slide-up {
    from { opacity: 0; transform: translateY(40px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Animated SVG checkmark ─────────────────────────────────── */
.rr-ty-icon-wrap {
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
}

.rr-ty-checkmark {
    width: 125px;
    height: 125px;
    display: block;
}

.rr-ty-circle {
    stroke: green;
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-linecap: round;
    transition: none;
}

.rr-ty-check {
    stroke: green;
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: none;
}

/* Triggered by JS adding .rr-ty-animate */
.rr-ty-checkmark.rr-ty-animate .rr-ty-circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.55s cubic-bezier(.65,0,.45,1);
}
.rr-ty-checkmark.rr-ty-animate .rr-ty-check {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.38s 0.45s ease-out;
}

/* ── Logo ───────────────────────────────────────────────────── */
.rr-ty-logo {
    display: block;
    height: 36px;
    margin: 0 auto 16px;
    object-fit: contain;
}

/* ── Heading ────────────────────────────────────────────────── */
.rr-ty-heading {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #0a2d5e;
    margin: 0 0 20px;
    line-height: 1.2;
}

.rr-ty-subheading {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.6;
}

/* ── Summary card ───────────────────────────────────────────── */
.rr-ty-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 0 0 20px;
    text-align: left;
}

.rr-ty-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    padding: 6px 0;
    gap: 12px;
}

.rr-ty-row span  { color: #64748b; flex-shrink: 0; }
.rr-ty-row strong { color: #1e293b; text-align: right; word-break: break-all; }

.rr-ty-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.rr-ty-total { padding-top: 10px; }
.rr-ty-total span   { font-weight: 700; color: #1e293b; font-size: 14px; }
.rr-ty-total strong { font-size: 18px; }

.rr-ty-price {
    color: #0a2d5e !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

/* ── Note ───────────────────────────────────────────────────── */
.rr-ty-note {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ── Close button ───────────────────────────────────────────── */
.rr-ty-close-btn {
    display: inline-block;
    background: #0a2d5e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .01em;
}
.rr-ty-close-btn:hover {
    background: #0d3a7a;
    transform: translateY(-1px);
}
.rr-ty-close-btn:active { transform: translateY(0); }

/* ── Gold accent bar at top of modal ────────────────────────── */
/* .rr-ty-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: green;
    border-radius: 18px 18px 0 0;
} */
.rr-ty-badge {
    display: flex;
    justify-content: center;
    margin-top: -105px;
    border-radius: 100%;
    text-align: center;
    z-index: 1;
    position: relative;
}
.rr-ty-badge svg {
    background-color: #ffffff;
    border-radius: 100%;
}
.rr-ty-footer {
    display: flex;
    width: 100%;
    gap: 30px;
    align-items: center;
}
button#rr-ty-cta {
    width: 100%;
    font-weight: 700;
    font-size: 30px;
}
span.rr-ty-upsell {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    font-weight: 600;
    font-size: 20px;
}
button#rr-ty-close {
    width: calc(40% - 15px);
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
    font-size: 25px;
    font-weight: 700;
}
button#rr-ty-close:hover {
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}
span.rr-ty-upsell a {
    color: var(--e-global-color-text);
	text-decoration: underline;
	font-weight: 800;
}
span.rr-ty-upsell a:hover {
    text-decoration: underline;
}
.rr-ty-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px){
	.rr-ty-checkmark {
		width: 80px;
		height: 80px;
	}
	.rr-ty-badge {
		margin-top: -70px;
	}
	.rr-ty-footer {
		gap: 20px;
		flex-direction: column;
	}
	button#rr-ty-close {
		width: 100%;
	}
	span.rr-ty-upsell {
		text-align: center;
	}
	.rr-ty-modal ul.rr-ty-bullets {
		font-size: 16px;
	}
	button#rr-ty-cta,
	button#rr-ty-close,
	span.rr-ty-upsell{
		font-size: 16px;
	}
}
@media (max-width: 520px) {
    .rr-ty-modal { padding: 32px 20px 24px; border-radius: 14px; }
    .rr-ty-heading { font-size: 25px !important; }
    .rr-ty-close-btn { width: 100%; text-align: center; padding: 13px; }
	.rr-submit-btn {
		font-size: 14px !important;
	}
}
