/* ============================================================
   Hammond Lumber – Business Card Order Form Styles
   ============================================================ */

#hammond-bcard-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

/* --- Preview Section --- */
.hammond-bcard-preview {
    margin-bottom: 48px;
}

.hammond-bcard-preview h2,
.hammond-bcard-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0282d;
    margin: 0 0 6px;
    padding: 0;
    border: none;
}

.preview-subtitle {
    color: #555;
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.card-previews {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.card-side {
    flex: 1 1 360px;
}

.card-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    background: #c0282d;
    padding: 3px 10px;
    border-radius: 3px 3px 0 0;
}

.card-frame {
    border: 2px solid #e0e0e0;
    border-radius: 0 6px 6px 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-frame iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: none;
}

.pdf-link-row {
    margin-top: 14px;
    text-align: center;
}

.hammond-pdf-link {
    display: inline-block;
    color: #c0282d;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: 2px solid #c0282d;
    padding: 6px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.hammond-pdf-link:hover {
    background: #c0282d;
    color: #fff;
}

/* --- Form Section --- */
.hammond-bcard-form-wrap h2 {
    margin-bottom: 20px;
}

.bcard-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bcard-field {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bcard-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.bcard-field .req {
    color: #c0282d;
}

.bcard-field input[type="text"],
.bcard-field input[type="email"],
.bcard-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.bcard-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.bcard-field input:focus,
.bcard-field select:focus {
    outline: none;
    border-color: #c0282d;
    box-shadow: 0 0 0 3px rgba(192,40,45,.12);
}

.bcard-field--address {
    margin-bottom: 20px;
}

.address-display {
    background: #f4f4f4;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 12px;
    margin: 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    white-space: pre-line;
}

.bcard-submit-row {
    margin-top: 10px;
}

.hammond-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c0282d;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 13px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: .02em;
}

.hammond-btn-submit:hover {
    background: #a01e22;
}

.hammond-btn-submit:active {
    transform: scale(.98);
}

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

/* --- Notices --- */
.hammond-notice {
    padding: 14px 18px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.hammond-success {
    background: #eaf7ec;
    border: 2px solid #4caf50;
    color: #256029;
}

.hammond-error {
    background: #fdecea;
    border: 2px solid #e53935;
    color: #7b1a17;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .bcard-field-row {
        flex-direction: column;
    }
    .card-previews {
        flex-direction: column;
    }
}
