/**
 * Public Styles - Professional Design
 *
 * @package Transmute_Engine_Trial_Seresa
 */

/* ========================================
   Base Typography & Colors
======================================== */
:root {
    --seresa-primary: #1b1f3c;
    --seresa-secondary: #6366f1;
    --seresa-success: #10b981;
    --seresa-error: #ef4444;
    --seresa-warning: #f59e0b;
    --seresa-light-bg: #f8fafc;
    --seresa-border: #e2e8f0;
    --seresa-text-primary: #1b1f3c;
    --seresa-text-secondary: #64748b;
}

/* ========================================
   Form Wrapper
======================================== */
.seresa-trial-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   Form Container
======================================== */
.seresa-trial-form {
    background: #ffffff;
    padding: 28px 48px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--seresa-border);
}

/* ========================================
   Form Layout
======================================== */
.seresa-trial-form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

/* Remove margin-bottom from form groups inside rows to prevent double spacing */
.seresa-trial-form-row .seresa-trial-form-group {
    margin-bottom: 0;
}

.seresa-trial-form-half {
    flex: 1;
}

/* ========================================
   Form Groups
======================================== */
.seresa-trial-form-group {
    margin-bottom: 24px;
}

/* Remove margin from last form group (submit button) for equal top/bottom spacing */
.seresa-trial-form-group:last-of-type {
    margin-bottom: 0;
}

.seresa-trial-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--seresa-text-primary);
    font-size: 15px;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.seresa-trial-form-group label .required {
    color: var(--seresa-error);
    margin-left: 3px;
    font-weight: 700;
}

/* ========================================
   Form Inputs
======================================== */
.seresa-trial-input,
.seresa-trial-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--seresa-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--seresa-text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #ffffff;
    line-height: 1.5;
}

.seresa-trial-input:focus,
.seresa-trial-select:focus {
    outline: none;
    border-color: var(--seresa-secondary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.seresa-trial-input::placeholder {
    color: #94a3b8;
}

.seresa-trial-input.error,
.seresa-trial-select.error {
    border-color: var(--seresa-error);
    background-color: #fef2f2;
}

.seresa-trial-input.error:focus,
.seresa-trial-select.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.seresa-trial-checkbox-input.error {
    outline: 2px solid var(--seresa-error);
    outline-offset: 2px;
}

/* ========================================
   Error Messages (Field Validation)
======================================== */
.seresa-trial-form-group .seresa-trial-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--seresa-error);
    font-size: 13px;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 8px;
    font-weight: 500;
}

/* ========================================
   Checkbox (Terms of Service)
======================================== */
.seresa-trial-checkbox-wrapper {
    margin-top: 4px;
}

.seresa-trial-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 10px;
}

.seresa-trial-checkbox-input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--seresa-secondary);
}

.seresa-trial-checkbox-text {
    color: var(--seresa-text-secondary);
    font-size: 13px;
    line-height: 1.4;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.seresa-trial-checkbox-text .required {
    color: var(--seresa-error);
    margin-left: 2px;
}

/* ========================================
   Submit Button
======================================== */
.seresa-trial-submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--seresa-secondary) 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.seresa-trial-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.seresa-trial-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.seresa-trial-submit-btn:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* ========================================
   Button Spinner
======================================== */
.seresa-trial-btn-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: seresa-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes seresa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Form Messages
======================================== */
.seresa-trial-form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

.seresa-trial-form-message.success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 2px solid #bbf7d0;
}

.seresa-trial-form-message.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 2px solid #fecaca;
}

/* ========================================
   Verification Page
======================================== */
.seresa-trial-verification {
    max-width: 680px;
    margin: 60px auto;
    padding: 20px;
}

.seresa-trial-loading {
    text-align: center;
    padding: 80px 20px;
}

.seresa-trial-spinner {
    border: 5px solid #f1f5f9;
    border-top: 5px solid var(--seresa-secondary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

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

.seresa-trial-message {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--seresa-border);
    text-align: center;
    display: block;
}

.seresa-trial-message h2 {
    margin: 0 0 16px 0;
    color: var(--seresa-text-primary);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
}

.seresa-trial-message p {
    color: var(--seresa-text-secondary);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 12px 0;
    display: block;
    width: 100%;
}

.seresa-trial-message.seresa-trial-error {
    border-left: 6px solid var(--seresa-error);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.seresa-trial-message.seresa-trial-error h2 {
    color: var(--seresa-error);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.seresa-trial-message.seresa-trial-error p {
    color: #991b1b;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 12px 0;
    display: block;
    clear: both;
}

.seresa-trial-message.seresa-trial-error p small {
    display: block;
    margin-top: 16px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 14px;
    color: #7f1d1d;
    font-family: "Courier New", monospace;
    word-break: break-word;
    line-height: 1.5;
}

.seresa-trial-message.seresa-trial-success {
    border-left: 6px solid var(--seresa-success);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.seresa-trial-message.seresa-trial-success h2 {
    color: var(--seresa-success);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.seresa-trial-message.seresa-trial-success p {
    color: #065f46;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 12px 0;
    display: block;
    clear: both;
}

.seresa-trial-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--seresa-secondary) 0%, #4f46e5 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 24px;
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.seresa-trial-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* ========================================
   Welcome Page
======================================== */
.seresa-trial-welcome {
    max-width: 880px;
    margin: 60px auto;
    padding: 20px;
}

.seresa-trial-success-message {
    text-align: center;
    margin-bottom: 48px;
}

.seresa-trial-success-message h1 {
    color: var(--seresa-primary);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.seresa-trial-subtitle {
    color: var(--seresa-text-secondary);
    font-size: 19px;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
}

.seresa-trial-info-box {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--seresa-border);
    margin-bottom: 24px;
}

.seresa-trial-info-box.seresa-trial-important {
    border-left: 6px solid var(--seresa-secondary);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.seresa-trial-info-box h2 {
    margin: 0 0 20px 0;
    color: var(--seresa-primary);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.seresa-trial-info-box p {
    color: var(--seresa-text-secondary);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.seresa-trial-info-box p:last-child {
    margin-bottom: 0;
}

.seresa-trial-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seresa-trial-details li {
    padding: 16px 0;
    border-bottom: 2px solid var(--seresa-border);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: var(--seresa-text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seresa-trial-details li:first-child {
    padding-top: 0;
}

.seresa-trial-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seresa-trial-details li strong {
    font-weight: 600;
    color: var(--seresa-primary);
}

/* ========================================
   Steps Section
======================================== */
.seresa-trial-steps {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--seresa-border);
    margin-bottom: 24px;
}

.seresa-trial-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.seresa-trial-step:last-child {
    margin-bottom: 0;
}

.seresa-trial-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--seresa-secondary) 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.seresa-trial-step-content h3 {
    margin: 0 0 10px 0;
    color: var(--seresa-primary);
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.seresa-trial-step-content p {
    margin: 0;
    color: var(--seresa-text-secondary);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   Help Section
======================================== */
.seresa-trial-help {
    text-align: center;
    padding: 32px 20px;
    color: var(--seresa-text-secondary);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.seresa-trial-help a {
    color: var(--seresa-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.seresa-trial-help a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .seresa-trial-form {
        padding: 24px;
    }

    .seresa-trial-form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Re-add margin for mobile since fields stack vertically */
    .seresa-trial-form-row .seresa-trial-form-group {
        margin-bottom: 24px;
    }

    .seresa-trial-form-row .seresa-trial-form-group:last-child {
        margin-bottom: 0;
    }

    .seresa-trial-step {
        flex-direction: column;
        gap: 16px;
    }

    .seresa-trial-success-message h1 {
        font-size: 32px;
    }

    .seresa-trial-subtitle {
        font-size: 17px;
    }

    .seresa-trial-info-box {
        padding: 24px;
    }

    .seresa-trial-steps {
        padding: 24px;
    }
}

/* ========================================
   Success Icon
======================================== */
.seresa-trial-success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 700;
    margin: 0 auto 28px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    line-height: 1;
}

/* ========================================
   Success Message Overrides
======================================== */
.seresa-trial-message.seresa-trial-success h2 {
    color: #059669;
    font-size: 32px;
    margin-bottom: 12px;
}

.seresa-trial-message.seresa-trial-success > p {
    color: #047857;
    font-size: 18px;
    margin-bottom: 8px;
}

/* ========================================
   Next Steps Section
======================================== */
.seresa-trial-next-steps {
    text-align: left;
    margin: 28px 0;
    padding: 28px 32px;
    background: #f8fffe;
    border-radius: 12px;
    border: 2px solid #d1fae5;
}

.seresa-trial-next-steps h3 {
    margin: 0 0 20px 0;
    color: #065f46;
    font-family: "PosteramaTextW15", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    text-align: center;
}

.seresa-trial-next-steps ol {
    margin: 0;
    padding-left: 28px;
    color: #064e3b;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    list-style-type: decimal;
}

.seresa-trial-next-steps ol li {
    margin-bottom: 14px;
    padding-left: 10px;
}

.seresa-trial-next-steps ol li:last-child {
    margin-bottom: 0;
}

.seresa-trial-next-steps ol li strong {
    color: #064e3b;
    font-weight: 700;
}

/* ========================================
   Info Box in Verification Context
======================================== */
.seresa-trial-message .seresa-trial-info-box {
    text-align: center;
    margin: 28px 0 20px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.seresa-trial-message .seresa-trial-info-box p {
    color: #78350f;
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.6;
}

.seresa-trial-message .seresa-trial-info-box p:first-child {
    font-weight: 700;
    font-size: 17px;
    color: #92400e;
}

.seresa-trial-message .seresa-trial-info-box p small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

@media (max-width: 480px) {
    .seresa-trial-form-wrapper {
        padding: 24px 16px;
    }

    .seresa-trial-form {
        padding: 20px;
    }

    .seresa-trial-submit-btn {
        font-size: 15px;
        padding: 14px 24px;
    }

    .seresa-trial-success-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }

    .seresa-trial-next-steps {
        padding: 20px;
    }

    .seresa-trial-next-steps ol {
        padding-left: 20px;
    }
}
