/* WC Fortryd Køb – Frontend form */

.wcf-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.wcf-form-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.wcf-form-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
}

.wcf-form-desc {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Fields */
.wcf-field {
    margin-bottom: 20px;
}

.wcf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.wcf-req { color: #e53e3e; }
.wcf-optional { font-weight: 400; color: #9ca3af; font-size: 13px; }

.wcf-field input[type="text"],
.wcf-field input[type="email"],
.wcf-field input[type="number"],
.wcf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1a202c;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    font-family: inherit;
}

.wcf-field input:focus,
.wcf-field textarea:focus {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

.wcf-field textarea { resize: vertical; min-height: 90px; }

/* Checkbox */
.wcf-checkbox-field {
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.wcf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
}

.wcf-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2271b1;
    cursor: pointer;
}

/* Submit button */
.wcf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    font-family: inherit;
}

.wcf-submit-btn:hover { background: #135e96; box-shadow: 0 4px 12px rgba(34,113,177,.3); }
.wcf-submit-btn:active { transform: scale(.98); }
.wcf-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Spinner animation */
@keyframes wcf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.wcf-btn-spinner svg { animation: wcf-spin .8s linear infinite; }

/* Messages */
.wcf-message {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.wcf-message.wcf-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}
.wcf-message.wcf-error {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* Success state – hide form */
.wcf-form-wrap.wcf-submitted .wcf-form { display: none; }
.wcf-form-wrap.wcf-submitted .wcf-form-desc { display: none; }

@media (max-width: 600px) {
    .wcf-form-inner { padding: 24px 20px; }
}
