#b4d-cc-form {
    margin: 15px 0;
}

.b4d-card-wrapper {
    max-width: 480px;
}

.b4d-card-display {
    perspective: 800px;
    margin-bottom: 15px;
}

.b4d-card-visual {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 14px;
    padding: 22px 24px;
    position: relative;
    transition: transform 0.6s ease, background 0.4s;
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.b4d-card-chip {
    width: 42px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37, #f0d68a);
    border-radius: 5px;
    position: relative;
}

.b4d-card-chip::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    width: 22px;
    height: 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
}

.b4d-card-number-display {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.b4d-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.b4d-card-holder-display {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b4d-card-expiry-display {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
}

.b4d-card-form p.form-row {
    margin-bottom: 12px;
}

.b4d-card-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.b4d-card-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.b4d-card-form input:focus {
    border-color: #c7a17a;
    box-shadow: 0 0 0 3px rgba(199,161,122,0.15);
    outline: none;
}

.b4d-card-form .form-row-first {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.b4d-card-form .form-row-last {
    float: right;
    width: 48%;
}

.b4d-card-form .required {
    color: #e74c3c;
}
