/* Modern ID Card Form Styling */
:root {
    --cloudi7-icg-primary: #2271b1;
    --cloudi7-icg-bg-white: #ffffff;
    --cloudi7-icg-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --cloudi7-icg-radius: 12px;
    --cloudi7-icg-text-muted: #646970;
    --cloudi7-icg-border: #dcdcde;
}

.cloudi7-icg-form-wrap {
    margin: 20px 20px 0 0;
    max-width: 1200px;
}

/* Header */
.cloudi7-icg-form-header {
    margin-bottom: 30px;
}

.cloudi7-icg-form-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.cloudi7-icg-form-header p {
    font-size: 15px;
    color: var(--cloudi7-icg-text-muted);
    margin: 0;
}

/* Two Column Layout */
.cloudi7-icg-form-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Form Sections as Cards */
.cloudi7-icg-form-section {
    background: var(--cloudi7-icg-bg-white);
    border-radius: var(--cloudi7-icg-radius);
    box-shadow: var(--cloudi7-icg-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--cloudi7-icg-border);
}

.cloudi7-icg-form-section h2 {
    margin: 0 0 25px 0;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Highlighted Section for Org Details */
.cloudi7-icg-form-section.highlighted {
    border-left: 5px solid var(--cloudi7-icg-primary);
    background: #fcfdfe;
}

/* Form Table Refinement */
.cloudi7-icg-form-section .form-table {
    margin-top: 0;
}

.cloudi7-icg-form-section .form-table th {
    width: 180px;
    padding: 15px 10px 15px 0;
}

.cloudi7-icg-form-section .form-table td {
    padding: 10px 0;
}

.cloudi7-icg-form-section input[type="text"],
.cloudi7-icg-form-section input[type="email"],
.cloudi7-icg-form-section input[type="date"],
.cloudi7-icg-form-section select,
.cloudi7-icg-form-section textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
}

/* Photo Upload Box */
.cloudi7-icg-upload-box {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f6f7f7;
    transition: all 0.2s;
}

.cloudi7-icg-upload-box:hover {
    border-color: var(--cloudi7-icg-primary);
    background: #f0f6fb;
}

.cloudi7-icg-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cloudi7-icg-text-muted);
}

.cloudi7-icg-upload-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.cloudi7-icg-form-photo-preview {
    margin-top: 15px;
}

.cloudi7-icg-form-photo-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar Preview */
.cloudi7-icg-sidebar-preview {
    position: sticky;
    top: 50px;
}

.cloudi7-icg-preview-card-box {
    background: var(--cloudi7-icg-bg-white);
    border-radius: var(--cloudi7-icg-radius);
    box-shadow: var(--cloudi7-icg-shadow);
    padding: 20px;
    border: 1px solid var(--cloudi7-icg-border);
}

.cloudi7-icg-preview-card-box h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Submit Row */
.cloudi7-icg-submit-row {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.cloudi7-icg-submit-row .button-hero {
    min-width: 250px;
    height: 50px;
    line-height: 48px;
    font-size: 18px !important;
    border-radius: 30px !important;
}

/* Hide legacy Photo input helper but keep it functional for JS */
.cloudi7-icg-photo-url {
    display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
    .cloudi7-icg-form-grid {
        grid-template-columns: 1fr;
    }
    
    .cloudi7-icg-sidebar-preview {
        position: static;
        order: -1;
    }
}
