.sca-wrap {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.sca-form-box {
    background: #fff;
    padding: 22px;
    width: 760px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.sca-form-header {
    background: #7b1c1c;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: -22px -22px 18px -22px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sca-form-box label {
    display: block;
    margin-top: 10px;
    color: #222;
    font-weight: 600;
    font-size: 14px;
}

.sca-form-box .required {
    color: red;
    font-size: 16px;
}

.sca-form-box input,
.sca-form-box textarea,
.sca-form-box select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
    color: #222;
    background: #fff;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.sca-form-box input:focus,
.sca-form-box textarea:focus,
.sca-form-box select:focus {
    outline: none;
    border-color: #7b1c1c;
}

.sca-form-box input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.sca-form-box textarea {
    min-height: 80px;
    resize: vertical;
}

.sca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sca-grid .full {
    grid-column: 1 / -1;
}

.sca-btn {
    background: #7b1c1c;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.sca-btn:hover {
    background: #5a1515;
}

.sca-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.sca-btn-main {
    background: #7b1c1c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-top: 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sca-btn-main:hover {
    background: #5a1515;
}

.sca-btn-main:disabled {
    background: #999;
    cursor: not-allowed;
}

.sca-small {
    margin-top: 4px;
    color: #555;
    font-size: 13px;
    min-height: 16px;
}

.sca-small.success {
    color: #2e7d32;
}

.sca-small.error {
    color: #c62828;
}

.sca-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99998;
}

.sca-id-card-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    max-width: 320px;
    width: 95%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #e52d27;
}

.sca-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.sca-card-close:hover {
    background: rgba(0,0,0,0.5);
}

.sca-id-card {
    display: flex;
    background: #e52d27;
    min-height: 280px;
}

.sca-id-card.secondary-card {
    background: #1c5b7b;
}

.sca-id-card-vertical {
    display: flex;
    flex-direction: row;
    background: #e52d27;
    min-height: 500px;
}

.sca-id-card-vertical.secondary-card {
    background: #1c5b7b;
}

.sca-card-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sca-card-photo-wrap {
    text-align: left;
    margin-bottom: 15px;
}

.sca-card-photo {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sca-card-photo-placeholder {
    width: 140px;
    height: 170px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.sca-card-member-id {
    margin-top: 8px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.sca-card-info {
    color: #fff;
    flex: 1;
}


.sca-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
}
.sca-card-name h2{
    color: white !important;
}

.sca-card-company {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    opacity: 0.95;
    color: #ffeb3b;
}

.sca-card-details {
    font-size: 13px;
    line-height: 1.8;
}

.sca-card-details p {
    margin: 0 0 6px 0;
}

.sca-card-details strong {
    font-weight: 600;
}

.sca-card-address {
    margin-top: 12px !important;
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.5;
}

.sca-card-nfc {
    margin-top: 15px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>') center/contain no-repeat;
    opacity: 0.9;
}

.sca-card-sidebar {
    width: 45px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.sca-card-sidebar span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: rotate(180deg);
}

@media (max-width: 720px) {
    .sca-wrap {
        padding: 15px;
    }
    
    .sca-form-box {
        width: 100%;
        padding: 15px;
    }
    
    .sca-form-header {
        margin: -15px -15px 15px -15px;
    }
    
    .sca-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sca-id-card-modal {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .sca-id-card,
    .sca-id-card-vertical {
        min-height: 100vh;
    }
    
    .sca-card-main {
        padding: 15px;
    }
    
    .sca-card-photo {
        width: 120px;
        height: 150px;
    }
    
    .sca-card-name {
        font-size: 16px;
    }
    
    .sca-card-company {
        font-size: 12px;
    }
    
    .sca-card-details {
        font-size: 11px;
    }
    
    .sca-card-sidebar span {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

.sca-popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.sca-popup-content {
    text-align: center;
}

.sca-popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sca-popup-success .sca-popup-icon {
    color: #2e7d32;
}

.sca-popup-error .sca-popup-icon {
    color: #c62828;
}

.sca-popup-content h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.sca-popup-content p {
    margin: 0 0 20px 0;
    color: #555;
}

.sca-member-id {
    font-size: 18px;
    color: #7b1c1c;
    margin-bottom: 20px !important;
}

.sca-popup-content .sca-btn {
    margin-top: 10px;
    padding: 10px 30px;
}