/* Main Wrapper */
.cng-wrapper {
    max-width: 1280px;
    margin: 40px auto;
    padding: 15px 0;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    color: #1f2937;
    background-color: transparent;
}

/* Cards */
.cng-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: visible;
    /* Fix for intl-tel-input dropdown */
}

.cng-card-title {
    background: #ffffff;
    padding: 24px 32px;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    border-top-left-radius: 12px;
    /* Maintain rounded corners */
    border-top-right-radius: 12px;
}

/* Ensure ITI dropdown is on top */
.iti {
    width: 100%;
    z-index: 10;
}


.cng-card-body {
    padding: 32px;
}

/* Grid System */
.cng-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.cng-col {
    flex: 1;
    min-width: 250px;
}

.cng-col-small {
    flex: 0 0 160px;
}

/* Form Elements */
.cng-wrapper label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.925rem;
    color: #374151;
}

.cng-wrapper label .cng-required {
    color: #ec0b77;
    /* Brand Pink for required asterisk */
    margin-left: 2px;
}

/* Inputs */
.cng-wrapper input[type="text"],
.cng-wrapper input[type="email"],
.cng-wrapper input[type="tel"],
.cng-wrapper select,
.cng-wrapper textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f9fafb;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Select Arrow Customization */
.cng-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.cng-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

/* Focus States */
.cng-wrapper input:focus,
.cng-wrapper select:focus,
.cng-wrapper textarea:focus {
    color: #1f2937;
    background-color: #fff;
    border-color: #ec0b77 !important;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(236, 11, 119, 1);
}

/* Helper Text */
.cng-helper-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Validation Status */
.cng-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.cng-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Custom Borderless Radio Group */
.cng-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 5px;
}

.cng-radio-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.cng-radio-group label:hover {
    color: #111827;
}

/* Custom Radio Circle using appearance:none */
.cng-radio-group input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0 10px 0 0;
    background-color: #fff;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    /* Neutral Gray */
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.cng-radio-group input[type="radio"]:hover {
    border-color: #9ca3af;
}

.cng-radio-group input[type="radio"]:checked {
    border-color: #ec0b77;
    /* Brand Pink border */
}

/* Inner Dot */
.cng-radio-group input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
    background-color: #ec0b77;
    /* Brand Pink dot */
}

.cng-radio-group input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Focus state for accessibility */
.cng-radio-group input[type="radio"]:focus {
    box-shadow: 0 0 0 4px rgba(236, 11, 119, 0.1);
    border-color: #ec0b77;
}

.cng-box-option {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 60px;
    text-align: center;
    line-height: 1.4;
    position: relative;
    user-select: none;
    color: #1f2937;
    /* Dark gray/Black text */
    overflow: hidden;
}

.cng-box-option span {
    color: #1f2937 !important;
}

.cng-box-option:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* Selected State */
.cng-box-option.cng-selected {
    border-color: #ec0b77 !important;
    /* Brand Pink/Red Border */
    background-color: #fff;
    box-shadow: none;
    color: #000;
    /* Black text */
    font-weight: 600;
}

/* Remove Checkmark Indicator */
.cng-box-option::after {
    display: none;
}


/* Hidden Input but accessible */
.cng-hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Fix grid gaps and text alignment */
.cng-radio-grid,
.cng-check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Responsive Grid */
@media (max-width: 1024px) {

    .cng-radio-grid,
    .cng-check-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .cng-radio-grid,
    .cng-check-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .cng-radio-grid,
    .cng-check-grid {
        grid-template-columns: 1fr;
    }

    .cng-box-option {
        min-height: 50px;
        padding: 12px;
    }
}


/* Existing row block tweaks */
.cng-row-block {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 30px;
}


/* Submit Section */
.cng-kvkk-block {
    margin-bottom: 15px;
}

.cng-kvkk-block .cng-checkbox-label {
    display: flex;
}

.cng-kvkk-block .cng-checkbox-label span {
    color: #000000 !important;
}

.cng-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #000;
    /* Black text as requested */
    cursor: pointer;
}

/* Custom Checkbox Styling */
.cng-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    /* Slightly larger for touch targets */
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.cng-checkbox-label input[type="checkbox"]:hover {
    border-color: #9ca3af;
}

.cng-checkbox-label input[type="checkbox"]:checked {
    border-color: #ec0b77;
    background-color: #ec0b77;
}

/* Checkmark Icon using CSS clip-path */
.cng-checkbox-label input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
}

.cng-checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.cng-action-row {
    margin-top: 30px;
}

.cng-btn-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 48px;
    /* Larger padding for pill shape */
    border: none;
    border-radius: 99999px !important;
    /* Full pill shape */
    background: #ec0b77 !important;
    /* Brand Pink */
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(236, 11, 119, 0.3), 0 2px 4px -1px rgba(236, 11, 119, 0.15);
}

.cng-btn-submit:hover {
    background: #be0960 !important;
    /* Darker shade of pink */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(236, 11, 119, 0.4);
}

.cng-btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.cng-error-message {
    margin-top: 15px;
    color: #dc2626;
    font-weight: 600;
    text-align: right;
    background: #fef2f2;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
}

.cng-field-error-msg {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
}

/* Intl Tel Input Overrides */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 99;
    /* Fix dropdown overlap */
}

/* Responsive */
@media (max-width: 640px) {
    .cng-row {
        flex-direction: column;
        gap: 15px;
    }

    .cng-col-small,
    .cng-col {
        width: 100%;
        flex: auto;
    }

    .cng-radio-group,
    .cng-check-group {
        grid-template-columns: 1fr;
    }

    .cng-card-title {
        padding: 20px;
    }

    .cng-card-body {
        padding: 20px;
    }
}