/*
* General body and container styles
*/
body {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    /* --- NEW: Brandmark background --- */
    background-image: url("../images/Brandmark_X_White.svg"), url("../images/GettyImages-1168157894-v2.webp"); /* Add your second background image URL here */
    background-repeat: no-repeat, repeat; /* 'no-repeat' for the logo, 'repeat' for the second background */
    background-position: center right -30em, center center; /* Position for logo, and for the second background */
    background-size: 70em, cover; /* Size for logo, and 'cover' for the second background to fill the space */
    /* --- END NEW --- */
}
/*
* Header styling
*/
.header {
    text-align: center;
    margin-bottom: 20px;
}
.header h1 {
    font-size: 28px;
    margin: 0;
    color: #333;
}
.header p {
    font-size: 16px;
    color: #666;
}
.header-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}
/*
* Main body layout
*/
.ax-body {
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    width: 1200px;
    gap: 50px;
}
.ax-body > div {
    flex: 1 1 50%;
    max-width: 50%;
}
/*
* Form styling
*/
.form-container {
    margin-bottom: 20px;
}
.form-grid-full {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-grid-full input { 
    border-radius: 50px !important;
}
.form-grid-full label {
    margin-left: 20px;
}
label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}
.char-count {
    float: right;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
/* --- Form Field Styling --- */
input[type="text"],
select {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    color: #555;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box; /* Ensures consistent sizing */
}
/* Style for placeholders */
input::placeholder {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
}
input[type="text"]:focus,
select:focus {
    border-color: #8f5499;
    box-shadow: 0 0 0 3px rgba(143, 84, 153, 0.2);
}
.checkbox-wrapper {
    display: flex;
    flex-direction: row; /* Forces horizontal alignment */
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensures it aligns with other full-width fields */
}
.checkbox-wrapper input[type="checkbox"] {
    margin-left: 0;
}
#phoneFields {
    display: block;
}
.phone-input-group,
.email-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background-color: #fff;
    transition: all 0.3s ease;
    padding: 0; /* Ensures inner elements control spacing */
}
.phone-input-group:focus-within,
.email-input-group:focus-within {
    border-color: #8f5499;
    box-shadow: 0 0 0 3px rgba(143, 84, 153, 0.2);
}
.phone-input-group select,
.phone-input-group input,
.email-input-group input {
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 14px 20px; /* Consistent padding for all inputs */
    font-size: 16px;
}
.phone-input-group select {
    flex-shrink: 0;
    width: auto;
    border-right: 1px solid #e0e0e0;
    padding-right: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23888" d="M8 12.5l-4-4h8l-4 4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    box-sizing: content-box; /* Prevents border from affecting padding */
    border-radius: 0;
    /*margin: 5px 0;*/
}
.phone-input-group input,
.email-input-group input {
    flex: 1;
}
.email-domain {
    padding: 14px;
    color: #888;
    white-space: nowrap;
    font-size: 16px;
    background-color: #efefef;
    border-radius: 0 50px 50px 0;
}
/* Material Design Upload Styling */
.material-upload-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.material-upload-input {
    display: none; /* Hide the default input[type="file"] */
}
.material-upload-button {
    margin: 0 !important;
    padding: 14px 25px;
    border: 1px solid #8f5499;
    border-radius: 50px;
    background-color: #fff;
    color: #8f5499;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.material-upload-button:hover {
    background-color: #f3eaf5; /* A lighter shade for hover effect */
    box-shadow: 0 4px 4px rgba(0,0,0,0.1);
}
.material-upload-text {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* --- End of Form Field Styling --- */
/*
* Signature preview and buttons
*/
.signature-container {
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.copy-btn,
.reset-btn,
.btn-primary,
.btn-secondary {
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
}
.copy-btn,
.btn-primary {
    background-color: #8f5499;
    color: #fff;
    width: 325px;
}
.copy-btn:hover,
.btn-primary:hover {
    background-color: #6a3d75;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.reset-btn {
    margin-top: 10px;
}
.reset-btn,
.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}
.reset-btn:hover,
.btn-secondary:hover {
    background-color: #ccc;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
/*
* Cropper.js Modal Styling
*/
.cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}
.cropper-container-wrapper {
    max-width: 500px;
    max-height: 400px;
    margin: 0 auto 20px;
    height: 300px;
    position: relative;
}
#image-to-crop {
    display: block;
    max-width: 100%;
}
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cropper-view-box {
    outline: 0;
    box-shadow: 0 0 0 1px #8f5499;
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.cropper-container img {
    image-orientation: 0deg;
    display: block;
    height: 100%;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100%;
}
.cropper-canvas,
.cropper-crop-box,
.cropper-drag-box,
.cropper-modal,
.cropper-wrap-box {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.cropper-canvas,
.cropper-wrap-box {
    overflow: hidden;
}
.cropper-drag-box {
    background-color: #fff;
    opacity: 0;
}
.cropper-modal {
    background-color: rgb(0 0 0 / 80%);
}
.cropper-view-box {
    display: block;
    height: 100%;
    outline: 1px solid #8f5499;
    outline-color: rgba(143, 84, 153, 0.75);
    overflow: hidden;
    width: 100%;
}
.cropper-dashed {
    border: 0 dashed #eee;
    display: block;
    opacity: 0.5;
    position: absolute;
}
.cropper-dashed.dashed-h {
    border-bottom-width: 1px;
    border-top-width: 1px;
    height: 33.33333%;
    left: 0;
    top: 33.33333%;
    width: 100%;
}
.cropper-dashed.dashed-v {
    border-left-width: 1px;
    border-right-width: 1px;
    height: 100%;
    left: 33.33333%;
    top: 0;
    width: 33.33333%;
}
.cropper-center {
    display: block;
    height: 0;
    left: 50%;
    opacity: 0.75;
    position: absolute;
    top: 50%;
    width: 0;
}
.cropper-center:after,
.cropper-center:before {
    background-color: #eee;
    content: " ";
    display: block;
    position: absolute;
}
.cropper-center:before {
    height: 1px;
    left: -3px;
    top: 0;
    width: 7px;
}
.cropper-center:after {
    height: 7px;
    left: 0;
    top: -3px;
    width: 1px;
}
.cropper-face,
.cropper-line,
.cropper-point {
    display: block;
    height: 100%;
    opacity: 0.1;
    position: absolute;
    width: 100%;
}
.cropper-face {
    background-color: #fff;
    left: 0;
    top: 0;
}
.cropper-line {
    background-color: #8f5499;
}
.cropper-line.line-e {
    cursor: ew-resize;
    right: -3px;
    top: 0;
    width: 5px;
}
.cropper-line.line-n {
    cursor: ns-resize;
    height: 5px;
    left: 0;
    top: -3px;
}
.cropper-line.line-w {
    cursor: ew-resize;
    left: -3px;
    top: 0;
    width: 5px;
}
.cropper-line.line-s {
    bottom: -3px;
    cursor: ns-resize;
    height: 5px;
    left: 0;
}
.cropper-point {
    background-color: #8f5499;
    height: 5px;
    opacity: 0.75;
    width: 5px;
}
.cropper-point.point-e {
    cursor: ew-resize;
    margin-top: -3px;
    right: -3px;
    top: 50%;
}
.cropper-point.point-n {
    cursor: ns-resize;
    left: 50%;
    margin-left: -3px;
    top: -3px;
}
.cropper-point.point-w {
    cursor: ew-resize;
    left: -3px;
    margin-top: -3px;
    top: 50%;
}
.cropper-point.point-s {
    bottom: -3px;
    cursor: s-resize;
    left: 50%;
    margin-left: -3px;
}
.cropper-point.point-ne {
    cursor: nesw-resize;
    right: -3px;
    top: -3px;
}
.cropper-point.point-nw {
    cursor: nwse-resize;
    left: -3px;
    top: -3px;
}
.cropper-point.point-sw {
    bottom: -3px;
    cursor: nesw-resize;
    left: -3px;
}
.cropper-point.point-se {
    bottom: -3px;
    cursor: nwse-resize;
    height: 20px;
    opacity: 1;
    right: -3px;
    width: 20px;
}
@media (min-width: 768px) {
    .cropper-point.point-se {
        height: 15px;
        width: 15px;
    }
}
@media (min-width: 992px) {
    .cropper-point.point-se {
        height: 10px;
        width: 10px;
    }
}
@media (min-width: 1200px) {
    .cropper-point.point-se {
        height: 5px;
        opacity: 0.75;
        width: 5px;
    }
}
.cropper-point.point-se:before {
    background-color: #8f5499;
    bottom: -50%;
    content: " ";
    display: block;
    height: 200%;
    opacity: 0;
    position: absolute;
    right: -50%;
    width: 200%;
}
.cropper-invisible {
    opacity: 0;
}
.cropper-bg {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJldd29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
}
.cropper-hide {
    display: block;
    height: 0;
    position: absolute;
    width: 0;
}
.cropper-hidden {
    display: none !important;
}
.cropper-move {
    cursor: move;
}
.cropper-crop {
    cursor: crosshair;
}
.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
    cursor: not-allowed;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    padding-left: 25px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 13px;
    width: 13px;
    background-color: #fff;
    border: 2px solid #8f5499;
    border-radius: 4px;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #8f5499;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 4px;
    top: 0px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}