/* =====================================================================
   Woo Custom Shipping Syncer — Frontend Styles
   Version: 1.0.0
   ===================================================================== */

/* === Reset & Base === */
.wcss-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Form Card === */
.wcss-form-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.wcss-form-card:hover {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.09);
}

/* === Title === */
.wcss-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

/* === Subtitle === */
.wcss-form-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    text-align: center;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* === Field Group === */
.wcss-field-group {
    margin-bottom: 22px;
}

/* === Label === */
.wcss-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.wcss-required {
    color: #dc2626;
    font-weight: 600;
}

/* === Input === */
.wcss-input {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.wcss-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.wcss-input:focus {
    background: #ffffff;
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.wcss-input:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* === Input Validation States === */
.wcss-input.wcss-input-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.wcss-input.wcss-input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* === Submit Button === */
.wcss-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    margin-top: 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: #0f172a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 52px;
}

.wcss-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wcss-submit-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}

.wcss-submit-btn:hover::before {
    opacity: 1;
}

.wcss-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.wcss-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === Button States === */
.wcss-btn-text {
    transition: opacity 0.2s ease;
}

.wcss-btn-loader {
    display: none;
    position: absolute;
    color: #ffffff;
}

.wcss-submit-btn.wcss-loading .wcss-btn-text {
    opacity: 0;
}

.wcss-submit-btn.wcss-loading .wcss-btn-loader {
    display: flex;
}

/* === Message (Success / Error) === */
.wcss-message {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 8px;
    animation: wcss-fade-in 0.3s ease;
}

.wcss-message.wcss-message-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wcss-message.wcss-message-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* === Animations === */
@keyframes wcss-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 600px) {
    .wcss-form-wrapper {
        padding: 20px 12px;
    }

    .wcss-form-card {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .wcss-form-title {
        font-size: 19px;
    }

    .wcss-form-subtitle {
        font-size: 13px;
    }

    .wcss-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .wcss-submit-btn {
        padding: 14px 20px;
        font-size: 13px;
        min-height: 48px;
    }
}
