/* Purbachal Club Form Styles */
.pcf-form-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.pcf-form-header {
    border-bottom: 3px solid #1e3a8a;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

.pcf-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.pcf-logo {
    width: 80px;
    height: 80px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid #1e3a8a;
}

.pcf-title h1 {
    color: #1e3a8a;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.pcf-address {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.pcf-serial {
    margin-left: auto;
    text-align: center;
}

.pcf-serial label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.serial-box {
    display: inline-block;
    border: 2px solid #333;
    padding: 5px 15px;
    min-width: 120px;
    font-family: monospace;
}

.pcf-form-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    text-transform: uppercase;
}

.pcf-instruction {
    text-align: center;
    font-style: italic;
    color: #666;
    margin: 5px 0;
}

.pcf-confidential {
    position: absolute;
    top: 0;
    right: 0;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #1e3a8a;
    padding: 5px 10px;
    transform: rotate(-5deg);
}

/* Sections */
.pcf-section {
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 20px;
    background: #fafafa;
}

.pcf-section h3 {
    background: #e5e7eb;
    margin: -20px -20px 20px -20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    font-style: italic;
}

/* Form Rows */
.pcf-form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pcf-form-row label {
    font-weight: 600;
    color: #374151;
    min-width: 200px;
}

.pcf-input-full {
    flex: 1;
    min-width: 300px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.pcf-input-full:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Multi-column layouts */
.pcf-two-col, .pcf-three-col {
    display: grid;
    gap: 20px;
}

.pcf-two-col {
    grid-template-columns: 1fr 1fr;
}

.pcf-three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.pcf-two-col > div, .pcf-three-col > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pcf-two-col input, .pcf-three-col input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Checkboxes */
.pcf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
    cursor: pointer;
    font-weight: normal !important;
    min-width: auto !important;
}

.pcf-checkbox input[type="checkbox"],
.pcf-checkbox input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Membership Types */
.pcf-membership-types {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.pcf-photo-requirement {
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    width: 150px;
    margin-left: auto;
    background: white;
}

/* Marital Status */
.pcf-marital-status {
    align-items: flex-start;
}

.pcf-spouse-field {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Children Section */
.pcf-children-section {
    position: relative;
}

.pcf-children-list {
    flex: 1;
}

.pcf-child-entry {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pcf-child-entry input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.pcf-add-child {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pcf-add-child:hover {
    background: #1e40af;
}

.pcf-family-photo {
    position: absolute;
    right: 0;
    top: 40px;
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    width: 150px;
    background: white;
}

/* Education Section */
.pcf-education {
    gap: 20px;
}

/* Proposer Section */
.pcf-proposer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

.pcf-proposer, .pcf-seconder {
    border: 1px solid #d1d5db;
    padding: 15px;
    background: white;
}

.pcf-proposer label, .pcf-seconder label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.pcf-proposer input, .pcf-seconder input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.signature-line {
    border-bottom: 1px solid #333;
    height: 30px;
    margin-top: 10px;
}

/* Referees */
.pcf-referees p {
    width: 100%;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.pcf-referee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.pcf-referee {
    border: 1px solid #d1d5db;
    padding: 15px;
    background: white;
}

.pcf-referee label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.pcf-referee input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Nominee */
.pcf-nominee-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin: 5px 0 15px 0;
    width: 100%;
}

.pcf-nominee-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    width: 100%;
}

.pcf-nominee-fields > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Activities */
.pcf-activities {
    gap: 20px;
}

/* Preferences */
.pcf-preferences p {
    width: 100%;
    font-weight: 600;
    margin-bottom: 15px;
}

.pcf-preference-group {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #d1d5db;
    width: 100%;
}

.pcf-preference-group > label:first-child {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* Declaration */
.pcf-declaration {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.pcf-declaration-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.pcf-declaration-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.pcf-declaration-item label {
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
    font-weight: normal;
    min-width: auto;
}

/* Submit Section */
.pcf-submit-section {
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #1e3a8a;
}

.pcf-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pcf-signature {
    text-align: center;
}

.signature-box {
    width: 200px;
    height: 60px;
    border: 1px solid #333;
    margin-top: 5px;
    background: white;
}

/* Form Actions */
.pcf-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.pcf-submit-btn, .pcf-preview-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pcf-submit-btn {
    background: #1e3a8a;
    color: white;
}

.pcf-submit-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.pcf-preview-btn {
    background: #6b7280;
    color: white;
}

.pcf-preview-btn:hover {
    background: #4b5563;
}

#pcf-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#pcf-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

#pcf-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Print Styles */
@media print {
    .pcf-form-actions, .pcf-add-child {
        display: none !important;
    }
    
    .pcf-form-container {
        box-shadow: none;
    }
    
    input, textarea {
        border: none !important;
        border-bottom: 1px solid #333 !important;
        background: transparent !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pcf-two-col, .pcf-three-col {
        grid-template-columns: 1fr;
    }
    
    .pcf-proposer-grid, .pcf-referee-grid {
        grid-template-columns: 1fr;
    }
    
    .pcf-logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .pcf-serial {
        margin-left: 0;
    }
}