/* =========================================
   HERMES PLUGIN — FORM STYLES
   Invisible Colectivo® · v1.0.0
   Dark cocktail / hospitality aesthetic
   ========================================= */

:root {
    --hermes-gold:       #c8a84b;
    --hermes-gold-light: #e0c06a;
    --hermes-gold-dim:   rgba(200,168,75,0.18);
    --hermes-dark:       #08111e;
    --hermes-card:       rgba(10, 18, 32, 0.82);
    --hermes-border:     rgba(200,168,75,0.35);
    --hermes-text:       #e8e0cc;
    --hermes-muted:      rgba(232,224,204,0.45);
    --hermes-error:      #e05252;
    --hermes-success:    #5cbb7f;
    --hermes-radius:     4px;
    --hermes-font:       'Cormorant Garamond', 'Georgia', serif;
    --hermes-font-ui:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Wrapper ── */
.hermes-wrapper {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 48px 56px;
    background: var(--hermes-card);
    border: 1px solid var(--hermes-border);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 60px rgba(200,168,75,0.06),
        0 24px 80px rgba(0,0,0,0.6);
}

/* Decorative corner accents */
.hermes-wrapper::before,
.hermes-wrapper::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--hermes-gold);
    border-style: solid;
    opacity: 0.5;
}
.hermes-wrapper::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.hermes-wrapper::after  { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

/* ── Title ── */
.hermes-title {
    font-family: var(--hermes-font) !important;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem) !important;
    font-weight: 600 !important;
    color: var(--hermes-text) !important;
    text-align: center !important;
    line-height: 1.25 !important;
    margin: 0 0 40px !important;
    letter-spacing: 0.01em;
}

/* ── Fields ── */
.hermes-field {
    margin-bottom: 24px;
}

.hermes-field input[type="text"],
.hermes-field input[type="email"],
.hermes-field input[type="tel"],
.hermes-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--hermes-border) !important;
    border-radius: 0 !important;
    color: var(--hermes-text) !important;
    font-family: var(--hermes-font-ui) !important;
    font-size: 14px !important;
    letter-spacing: 0.03em;
    padding: 10px 4px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hermes-field input::placeholder,
.hermes-field textarea::placeholder {
    color: var(--hermes-muted) !important;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hermes-field input:focus,
.hermes-field textarea:focus {
    border-bottom-color: var(--hermes-gold) !important;
    color: var(--hermes-text) !important;
}

.hermes-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Select ── */
.hermes-select-wrapper {
    position: relative;
}

.hermes-select-wrapper select {
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--hermes-border) !important;
    border-radius: 0 !important;
    color: var(--hermes-muted) !important;
    font-family: var(--hermes-font-ui) !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 28px 10px 4px !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.hermes-select-wrapper select:focus,
.hermes-select-wrapper select.hermes-selected {
    border-bottom-color: var(--hermes-gold) !important;
    color: var(--hermes-text) !important;
}

/* Dropdown options dark styling */
.hermes-select-wrapper select option {
    background: #0d1a2a;
    color: #e8e0cc;
}

.hermes-select-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hermes-gold);
    font-size: 10px;
    pointer-events: none;
}

/* ── Submit Button ── */
.hermes-submit-wrap {
    margin-top: 36px;
    margin-bottom: 0;
}

.hermes-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 32px;
    background: transparent;
    border: 1.5px solid var(--hermes-gold);
    border-radius: var(--hermes-radius);
    color: var(--hermes-gold);
    font-family: var(--hermes-font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hermes-btn:hover:not(:disabled) {
    background: var(--hermes-gold-dim);
    box-shadow: 0 0 24px rgba(200,168,75,0.25);
}

.hermes-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.hermes-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Spinner ── */
.hermes-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--hermes-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: hermes-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes hermes-spin {
    to { transform: rotate(360deg); }
}

/* ── Success / Error messages ── */
.hermes-success,
.hermes-error {
    margin-bottom: 24px;
    padding: 14px 20px;
    border-radius: var(--hermes-radius);
    font-family: var(--hermes-font-ui);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hermes-success {
    background: rgba(92,187,127,0.12);
    border: 1px solid rgba(92,187,127,0.4);
    color: var(--hermes-success);
}

.hermes-error {
    background: rgba(224,82,82,0.1);
    border: 1px solid rgba(224,82,82,0.35);
    color: var(--hermes-error);
}

.hermes-success p,
.hermes-error p {
    margin: 0;
    line-height: 1.5;
}

.hermes-success-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

/* ── Field validation states ── */
.hermes-field input.hermes-invalid,
.hermes-field textarea.hermes-invalid,
.hermes-select-wrapper select.hermes-invalid {
    border-bottom-color: var(--hermes-error) !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hermes-wrapper {
        padding: 32px 24px 40px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .hermes-wrapper::before,
    .hermes-wrapper::after {
        display: none;
    }
    .hermes-btn {
        max-width: 100%;
    }
}
