/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;900&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
.sms-widget-wrapper {
    box-sizing: border-box;
}
.sms-widget-wrapper *, .sms-widget-wrapper *::before, .sms-widget-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* ─── Widget Main Structure ────────────────────────────────────────────────── */
.sms-widget-wrapper {
    background-color: #ffffff;
    position: relative;
    width: 100%;
    height: 600px; /* Example fixed height to show the background properly */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* ─── Background Image ─────────────────────────────────────────────────────── */
.sms-widget-bg-container {
    position: absolute;
    height: 100%;
    left: -85px;
    top: 0;
    width: 1066px;
}
.sms-widget-bg-inner {
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; */
    pointer-events: none;
}
.sms-widget-bg-image {
    position: absolute;
    max-width: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.sms-widget-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(24, 22, 22, 0.12);
}

/* ─── Form Card ────────────────────────────────────────────────────────────── */
.sms-widget-card-container {
    position: absolute;
    left: 30px;
    top: 103px;
}
.sms-widget-card {
    background-color: rgba(255, 255, 255, 0.73);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 18px;
    padding: 30px;
    width: 333px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.sms-widget-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}
.sms-widget-title {
    font-family: 'Arial Black', 'Inter', sans-serif; /* Fallback for Industry:Ultra */
    font-weight: 900;
    color: #b91f31;
    font-size: 31px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 16px;
}
.sms-widget-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #050505;
    font-size: 21px;
    text-align: center;
    line-height: 1.25;
}

/* ─── Form Fields ──────────────────────────────────────────────────────────── */
.sms-widget-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sms-widget-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sms-widget-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #585656;
    font-size: 17px;
    text-transform: uppercase;
}
.sms-widget-input {
    background-color: #fafafa;
    border: 0.5px solid #cbcdd1;
    height: 34px;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #050505;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}
.sms-widget-input::placeholder {
    color: #9ca3af;
}
.sms-widget-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #b91f31;
    border-color: transparent;
}

/* ─── Error ────────────────────────────────────────────────────────────────── */
.sms-widget-error {
    display: none;
    font-size: 13px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 7px;
    padding: 8px 12px;
    text-align: center;
}

/* ─── Submit Button ────────────────────────────────────────────────────────── */
.sms-widget-button {
    background-color: #da4032;
    height: 34px;
    border-radius: 7px;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Black */
    color: white;
    font-size: 21px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sms-widget-button:hover:not(:disabled) {
    background-color: #c2362a;
}
.sms-widget-button:active:not(:disabled) {
    transform: scale(0.98);
}
.sms-widget-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 8px;
}

.sms-widget-button.loading .btn-text { opacity: 0.8; }
.sms-widget-button.loading .btn-spinner {
    display: block;
    animation: spin 0.7s linear infinite;
}

/* ─── Success State ────────────────────────────────────────────────────────── */
.sms-widget-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
    animation: fadeIn 0.4s ease;
}

.sms-widget-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.1);
    border: 2px solid #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #34d399;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
